from rest_framework.pagination import PageNumberPagination
from rest_framework.response import Response

class AppNumberPagination(PageNumberPagination):
    # page_size = 10
    page_query_param = 'pageNum'

    page_size_query_param = 'pageSize'

    # def get_paginated_response(self, data):
    #     return Response({
    #         "code": 200,
    #         "msg": "success",
    #         "total": self.page.paginator.count,
    #         "data": data
    #     })